package atom.core0.util;

import java.util.Collection;

public class EmptyUtil {
    public static boolean isEmpty(final CharSequence cs) {
    	//不用s.isEmpty() 是因为还要判断s是否是null
        return cs == null || cs.length() == 0;
    }	
	public static boolean isEmpty(Object[] data)
	{
		if (data==null || data.length==0)
			return true;
		else
			return false;

	}	
	public static boolean isEmpty(Collection data)
	{
		if (data==null || data.size()==0)
			return true;
		else
			return false;

	}		
}
